package com.pay.strategy;

import com.pay.entity.PaymentChannelDO;
import com.pay.entity.PaymentInfoDO;

/**
 * @author 周益和
 * @ClassName PayStrategy
 * @qq 1552951165
 */
public interface PayStrategy {
    /**
     *
     * @param payTokenPaymentInfo
     * @param paymentChannelDo
     * @return
     */
    String toPay(PaymentInfoDO payTokenPaymentInfo, PaymentChannelDO paymentChannelDo);
    
    /**
     * 同步支付的状态
     * 根据支付id或者订单号码
     *
     * @param paymentInfo
     * @return
     */
    boolean payIdByPayResult(PaymentInfoDO paymentInfo);
}
